import React from 'react';
import {compose} from 'recompose';
import {withRouter} from 'react-router';
import {Row, Col, Alert} from 'antd';

export default compose(
    withRouter
)(props => (
    <Row type="flex" align="middle" className="h100">
        <Col span="4" offset="10">
            <Alert
                type="warning" message="404" showIcon
                closeText="返回" onClose={() => props.router.goBack()}
            />
        </Col>
    </Row>
));
